<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
	

	<title>着数多多</title>
	<link rel="stylesheet" href="{$_C.hy_path}css/card/main.css">
</head>
<body>
	<div class="wrapper yhq-wrapper">
		<p class="padlr-20 padtb-10">卡券优惠</p>
		<div class="yhq-list">
		
			{foreach from = $records item = record}
		
			<div class="col cl-yhq-white padl-10 padt-20 marb-8 marlr-10"  data-id="{$record.id}">
				<div class="photo-img">
					<img src="/ws{$record.img}" alt="">
				</div>
				<div class="photo-info"   >
					<p class="yhq-name text-overflow cl-f-gray font-12 marb-12">{$record.name}</p>
					<p class="yhq-info text-overflow cl-f-dgray font-14 marb-20">{$record.description}</p>
					<p class="yhq-last-data font-12 cl-f-lgray">有效期：{$record.dotime2}</p>
				</div>
			</div>
			{foreachelse}
			<span style="text-align:center;width:100%"  >
			- - - - 暂 无 卡 券 优 惠 - - - -
			</span>
			{/foreach}
			
		</div>
	</div>
	<div class="yhq-alert-wrapper alert-wrapper hide">
		<div class="yhq-alert alert moveFromTop">
			<i class="icon-close"></i>
			<div class="yhq-list col pada-20 marb-35">
				<div id="photo-img" class="photo-img">
					<img src="{$_C.hy_path}images/card/photo-img.png" alt="">
				</div>
				<div class="photo-info">
					<p id="yhq-name" class="yhq-name text-overflow font-12 marb-8"></p>
					<p id="yhq-info" data-id="0" class="yhq-info text-overflow font-16 marb-8"></p>
					<p id="yhq-last-data" class="cl-f-dblue font-12"></p>
				</div>
			</div>
			<p class="btn-con"><a   onclick="info()" href="javascript:;" class="btn font-14 cl-btn-blue marb-5">立即领取</a></p>
			<p class="cl-f-dblue font-12">（卡券领取后将添加到微信卡包）</p>
		</div>
	</div>
	<div class="yhqInfo-alert-wrapper alert-wrapper hide">
		<form class="yhqInfo-alert alert moveFromTop">
			<i class="icon-close"></i>
			<div class="yhqInfo-list pada-20 marb-10">
				<p class="alert-title"><img src="{$_C.hy_path}images/card/info.png" alt=""></p>
				<p class="font-12 marb-10"><input id="username"  name="username"  class="yhqInfo-input" type="text" placeholder="姓名："></p>
				<p class="font-12 marb-20"><input id="phone"  id="phone"  class="yhqInfo-input" type="text" placeholder="电话："></p>
				<p class="btn-con"><a onclick="yhqInfo()" href="javascript:;" class="btn font-14 cl-btn-blue marb-5">提 交</a></p>
			</div>
		</form>
	</div>
	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "//hm.baidu.com/hm.js?808c919bdc18475fae43350429e11cb4";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>	
	<script src="{$_C.hy_path}js/card/jquery-1.11.2.min.js"></script>
	<script src="{$_C.hy_path}js/card/main.js"></script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="{$_C.hy_path}js/chat_card.js"></script>
<script>
		   
		
		 
		
		 
		  wx.config({
		    debug: false, 
		   appId: '{$jsdk.appId}',
				timestamp: {$jsdk.timestamp},
				nonceStr: '{$jsdk.nonceStr}',
				signature: '{$jsdk.signature}',
		    jsApiList: [
		      // 所有要调用的 API 都要加到这个列表中
			  'onMenuShareTimeline',
	      	  'onMenuShareAppMessage',
		      'addCard',

		    ]
		  });
		
		  
		  wx.ready(function () {
				
				 wx.onMenuShareTimeline({
					    title: 'G4摇电视3.0邀您一起来拿着数',
					    
					     imgUrl: 'http://g4.airefp.com/ws/Mobile/Webroot/gf/images/chat/share.png',
					      trigger: function (res) {
					       
					      },
					      success: function (res) {
					    	 
					      },
					      cancel: function (res) {
					       
					      },
					      fail: function (res) {
					        warn(JSON.stringify(res));
					      }
				    });
				    
					wx.onMenuShareAppMessage({
					    
					     title: 'G4摇电视3.0',
					    desc: 'G4摇电视3.0邀您一起来拿着数',
					  	imgUrl: 'http://g4.airefp.com/ws/Mobile/Webroot/gf/images/chat/share.png',
					    success: function () { 
					    	
					    },
					    cancel: function () { 
					        // 用户取消分享后执行的回调函数
					    }
				});
				  
			 
			  });
		
	</script>
	
</body>
</html>